home *** CD-ROM | disk | FTP | other *** search
- @set gnubgprefdir=%1%\..\.gnubg
- @echo.
- @echo GNUbackgammon prefenence directory is supposed to be:
- @echo %gnubgprefdir%
- @echo.
- @if exist %gnubgprefdir% goto found
- @echo GNUbackgammon preferences directory not found, nothing to delete.
- @goto :end
-
- :found
- @echo ATTENTION: deleting the GNUbackgammon prefernce directory will delete
- @echo all your settings and all the eventual database files present.
- @echo.
- @set choice=
- @set /P choice="GNUbackgammon preferences directory found, delete it [y/n] ?"
- @echo.
- @if '%choice%'=='y' (
- @rmdir /S /Q %gnubgprefdir%
- @if not exist %gnubgprefdir% (
- @echo GNUbackgammon preferences directory deleted.
- @goto end
- )
- )
- @echo GNUbackgammon preferences directory still present.
- :end
- @echo.
- @pause
- @cls
-